﻿<ctrls:SmartpartPage x:Class="SBPweb.PROvibe.Client.Modules.Default.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:microsoft="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls"
    xmlns:ctrls="clr-namespace:SBPweb.PROvibe.Client.Framework.Controls;assembly=SBPweb.PROvibe.Client.Framework.Controls">
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center">
        <TextBlock Name="tb" Foreground="White" />
        <Canvas Name="spControls">
            <ctrls:SmartpartContainer Name="spc1" IsClosable="False"
                SmartpartType="xap://SBPweb.PROvibe.Client.Modules.Controls.xap/SBPweb.PROvibe.Client.Modules.Controls.dll?class=SBPweb.PROvibe.Client.Modules.Controls.Media"
            />
            <ctrls:SmartpartContainer Name="spc2" IsClosable="False" Caption="Theme selector" Canvas.Top="-100">
                <ctrls:SmartpartContainer.Content>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Themes:" Foreground="#FFFFFF" />
                        <ComboBox Name="cbThemes" SelectionChanged="ComboBox_SelectionChanged" />
                        <Button Name="bAddSPC" Content="Add SmartpartContainer" Click="Button_Click" />
                    </StackPanel>
                </ctrls:SmartpartContainer.Content>
            </ctrls:SmartpartContainer>
            <ctrls:SmartpartContainer Name="spc3" IsClosable="False" IsBorderless="True"
                SmartpartType="xap://SilverlightClock_MVP_mainPage.xap/SilverlightClock_MVP.dll?class=SilverlightClock_MVP.AnalogClock_v2"
            />
            <ctrls:SmartpartContainer Name="spc4"
                SmartpartType="xap://SBPweb.PROvibe.Client.Modules.Messenger.xap/SBPweb.PROvibe.Client.Modules.Messenger.dll?class=SBPweb.PROvibe.Client.Modules.Messenger.Page">
            </ctrls:SmartpartContainer>
        </Canvas>
        <ctrls:ContextMenu Name="cmPopup">
            <ctrls:ContextMenu.Content>
                <StackPanel>
                    <TextBlock Text="Click me!" Foreground="White" />
                    <TextBlock Text="Me too..." Foreground="White" />
                </StackPanel>
            </ctrls:ContextMenu.Content>
        </ctrls:ContextMenu>
    </Grid>
</ctrls:SmartpartPage>